package apis

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"time"
)

func Register(s *gin.Engine) {
	s.GET("/", func(c *gin.Context) {
		time.Sleep(5 * time.Second)
		c.String(http.StatusOK, "Welcome Gin Server")
	})
	s.POST("./page_views_top", PageViewsTop)
	s.POST("./search", Search)
	s.POST("./highlight_search", HighlightSearch)
	s.POST("./search_for_records", SearchForRecords)
	s.POST("./shopping_cart", ShoppingCart)
	s.POST("./comment", Comment)
	s.POST("./create_comment", CreateComment)
}
